<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
 <%@ page isELIgnored="false"%>
<title>List</title>
</head>
<body>
<a href="home.htm">Home</a>
<c:if test="${not empty listOfItems}">
	<h2>Your Shopping Basket has following Items</h2>
    
     <table width="75%" align="center" border="1" width = "250px" height = "0px" align = "center">
     <tr>
    <th>Item Name</th>
    <th>Unit Cost</th>
    <th>Sku Code</th>
    <th>Quantity Selected</th>
  </tr>
   <c:forEach var="item" varStatus="status" items="${listOfItems}">
     <tr>
        <td><c:out value="${item.itemName}"/></td>
        <td><c:out value="${item.value}"/></td>
        <td><c:out value="${item.skuCode}"/></td>       
        <td><c:out value="${item.quantity}"/></td>
    </tr>
     </c:forEach>
    </table>
   
    <a href="cost.htm">Calculate Total Cost</a>
</c:if>
</body>
</html>